package com.hdoit.ares.logical.advertisement.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.ares.logical.advertisement.dao.IAdvertisementDao;
import com.hdoit.ares.logical.advertisement.dao.IAdvertisementLocationDao;
import com.hdoit.ares.logical.advertisement.model.Advertisement;
import com.hdoit.ares.logical.advertisement.service.IAdvertisementService;
import com.hdoit.ares.logical.viewmodel.advertisement.AdvertisementSearch;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年03月13日 19:26:01
 * @comment
 */
@Component
public class AdvertisementServiceImpl extends SuperService<Advertisement> implements IAdvertisementService{
	private IAdvertisementDao advertisementDao;
	public IAdvertisementDao getAdvertisementDao() {
		return advertisementDao;
	}

	@Resource
	public void setAdvertisementDao(IAdvertisementDao advertisementDao) {
		this.advertisementDao = advertisementDao;
	}

	@Override
	public List<Advertisement> queryList(AdvertisementSearch search, PagerModel pagerModel) {
		return advertisementDao.queryList(search,pagerModel);
	}

	@Override
	public List<Advertisement> queryList(AdvertisementSearch search) {
		return advertisementDao.queryList(search);
	}

	@Override
	public int queryCount(AdvertisementSearch search) {
		return advertisementDao.queryCount(search);
	}

	@Override
	public Advertisement queryModelByAdName(String adName) {
		return advertisementDao.queryModelByAdName(adName);
	}

}